---
title: Site CSS stylesheet
---

/* === EXTRA FONTS === */
@font-face {
  font-family: "Iosevka";
  src: url("{{ site.baseurl }}/assets/iosevka-light.woff2") format("woff2");
}

@font-face {
  font-family: "Iosevka";
  src: url("{{ site.baseurl }}/assets/iosevka-italic.woff2") format("woff2");
  font-style: italic;
}

/* === GENERIC HTML ELEMENTS === */
* {
  transition: 0.1s all;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #fff;
  color: #333;
  font-family: "Noto Sans SC";
  padding: 0;
  margin: 0;
}

code {
  font-family: Iosevka;
  font-size: 0.9em;
}

pre {
  padding-top: 1em;
  padding-bottom: 1em;
  border-top: 2px rgb(24, 123, 9) dotted;
  border-bottom: 2px rgb(24, 123, 9) dotted;
  overflow: scroll;
}

blockquote {
  display: flex;
}

blockquote:before {
  flex: 1;
  left: -20px;
  font-weight: 1000;
  font-size: 50px;
  color: rgba(24, 123, 9, 0.5);
  height: 1em;
  margin-right: 1rem;
  content: "“";
}

table {
  border-spacing: 0;
  border-top: 1px rgb(24, 123, 9) solid;
  margin: 1em auto;
}

th {
  border: 1px rgb(24, 123, 9) solid;
  color: rgb(24, 123, 9);
  font-size: 0.8em;
  margin: -1px -1px;
  font-weight: 1000;
  border-right: 0;
  border-top: 0;
  padding: 0.25em 1em;
}

th:last-child {
  border-right: 1px rgb(24, 123, 9) solid;
}

td {
  border: 1px #bbbbbb solid;
  color: #444444;
  margin: -1px -1px;
  border-right: 0;
  border-top: 0;
  font-size: 0.9em;
  padding: 0.25em 1em;
}

td:last-child {
  margin-right: -1px;
  border-right: 1px #bbbbbb solid;
}

td:hover {
  background-color: rgb(30, 150, 16);
  box-shadow: 0 2px 0 2px #eeeeee;
  border-color: rgb(30, 150, 16);
  color: white;
  transition: 0.3s all;
}

/* === CODE HIGHLIGHTING === */
.highlight .hll { background-color: #ffffcc }
.highlight .c { color: #408080; font-style: italic } /* Comment */
.highlight .err { border: 1px solid #FF0000 } /* Error */
.highlight .k { color: #008000; font-weight: bold } /* Keyword */
.highlight .o { color: #666666 } /* Operator */
.highlight .cm { color: #408080; font-style: italic } /* Comment.Multiline */
.highlight .cp { color: #BC7A00 } /* Comment.Preproc */
.highlight .c1 { color: #408080; font-style: italic } /* Comment.Single */
.highlight .cs { color: #408080; font-style: italic } /* Comment.Special */
.highlight .gd { color: #A00000 } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gr { color: #FF0000 } /* Generic.Error */
.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
.highlight .gi { color: #00A000 } /* Generic.Inserted */
.highlight .go { color: #808080 } /* Generic.Output */
.highlight .gp { color: #000080; font-weight: bold } /* Generic.Prompt */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
.highlight .gt { color: #0040D0 } /* Generic.Traceback */
.highlight .kc { color: #008000; font-weight: bold } /* Keyword.Constant */
.highlight .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */
.highlight .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */
.highlight .kp { color: #008000 } /* Keyword.Pseudo */
.highlight .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #B00040 } /* Keyword.Type */
.highlight .m { color: #666666 } /* Literal.Number */
.highlight .s { color: #BA2121 } /* Literal.String */
.highlight .na { color: #7D9029 } /* Name.Attribute */
.highlight .nb { color: #008000 } /* Name.Builtin */
.highlight .nc { color: #0000FF; font-weight: bold } /* Name.Class */
.highlight .no { color: #880000 } /* Name.Constant */
.highlight .nd { color: #AA22FF } /* Name.Decorator */
.highlight .ni { color: #999999; font-weight: bold } /* Name.Entity */
.highlight .ne { color: #D2413A; font-weight: bold } /* Name.Exception */
.highlight .nf { color: #0000FF } /* Name.Function */
.highlight .nl { color: #A0A000 } /* Name.Label */
.highlight .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */
.highlight .nt { color: #008000; font-weight: bold } /* Name.Tag */
.highlight .nv { color: #19177C } /* Name.Variable */
.highlight .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
.highlight .mf { color: #666666 } /* Literal.Number.Float */
.highlight .mh { color: #666666 } /* Literal.Number.Hex */
.highlight .mi { color: #666666 } /* Literal.Number.Integer */
.highlight .mo { color: #666666 } /* Literal.Number.Oct */
.highlight .sb { color: #BA2121 } /* Literal.String.Backtick */
.highlight .sc { color: #BA2121 } /* Literal.String.Char */
.highlight .sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */
.highlight .s2 { color: #BA2121 } /* Literal.String.Double */
.highlight .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */
.highlight .sh { color: #BA2121 } /* Literal.String.Heredoc */
.highlight .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */
.highlight .sx { color: #008000 } /* Literal.String.Other */
.highlight .sr { color: #BB6688 } /* Literal.String.Regex */
.highlight .s1 { color: #BA2121 } /* Literal.String.Single */
.highlight .ss { color: #19177C } /* Literal.String.Symbol */
.highlight .bp { color: #008000 } /* Name.Builtin.Pseudo */
.highlight .vc { color: #19177C } /* Name.Variable.Class */
.highlight .vg { color: #19177C } /* Name.Variable.Global */
.highlight .vi { color: #19177C } /* Name.Variable.Instance */
.highlight .il { color: #666666 } /* Literal.Number.Integer.Long */

/* === CUSTOM CSS === */
.article {
  max-width: 40em;
}

.article__centerify {
  margin-left: auto;
  margin-right: auto;
}

@media screen and (min-width: 1000px) {
  .article {
    font-size: 1.2em;
  }
}

@media screen and (min-width: 1700px) {
  .article {
    font-size: 1.5em;
  }
}
.article a, .link {
  font-weight: 1000;
  color: rgb(24, 123, 9);
  border-bottom: 1px rgb(24, 123, 9) dotted;
  text-decoration: none;
}

.article a:hover, .link:hover {
  color: rgb(14, 63, 7);
  broder-bottom: 2px rgb(14, 63, 7) dotted;
}

.article a:active, .link:active {
  background-color: rgb(14, 63, 7);
  color: white;
}

img {
  width: 100%; /* just in case */
}

.top-bar {
  width: 100vw;
  height: 5px;
  background-color: rgb(24, 123, 9);
}

.banner-canvas-holder {
  padding-top: 3em;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
}

.full-screen {
  max-width: 100vw;
  min-height: 100vh;
  position: relative;
}

.banner-title {
  text-align: center;
  font-size: 50px;
  user-select: none;
}

.banner-subtitle {
  font-size: 15px;
  color: #777;
  user-select: none;
}

.introduction-title {
  font-size: 40px;
  user-select: none;
  text-align: center;
  font-weight: 1000;
}

.introduction-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.introduction-bar__bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100vw;
}

.introduction-bar__sticky {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 1;
}

.introduction-bar__shadow {
  box-shadow: 0 4px 4px 0 rgba(128, 128, 128, 0.5);
}

.introduction-item {
  padding: 5px 1em;
  border-bottom: 3px rgb(24, 123, 9) solid;
  width: 100%;
  font-weight: 700;
  text-align: center;
  color: #444444;
  user-select: none;
  text-decoration: none;
  white-space: nowrap;
  background-color: white;
  font-size: 0.95em;
}

@media screen and (min-width: 1000px) {
  .introduction-item {
    font-size: 1.2em;
  }
}

@media screen and (min-width: 1700px) {
  .introduction-item {
    font-size: 1.5em;
  }
}

.introduction-item:hover {
  background-color: rgba(24, 123, 9, 0.9);
  color: white;
}

.introduction-item:active, .introduction-item__active {
  background-color: rgb(24, 123, 9);
  color: white;
}

.introduction-item:first-child {
  border-left: 0;
}

.introduction-item:last-child {
  border-right: 0;
}

.article, .footer {
  padding: 0 10%;
  margin-top: 2em;
  font-family: "Noto Serif SC";
}

.footer {
  margin-bottom: 5em;
  display: flex;
  justify-content: space-between;
}

.footer__title {
  font-size: 30px;
  user-select: none;
}

.footer b {
  font-weight: 1000;
  background-color: rgb(24, 123, 9);
  color: #ffffff;
}

.footer__comment {
  color: #aaaaaa;
  font-size: 10px;
  font-family: "Noto Serif SC";
  text-align: right;
  margin-top: 1rem;
}

/* DEPRECATED: This makes the site even more ugly
.article > p:first-child:first-letter {
  float: left;
  font-size: 45px;
  font-weight: 1000;
} */

.image-holder {
  transform: rotate(-1deg);
  padding: 2em;
  box-shadow: 3px 3px 5px 6px #ccc;
  max-width: 500px;
}

.image-holder > img {
  width: 100%;
}

.image-holder__description {
  color: #434343;
  font-family: "Noto Sans SC";
  font-size: 14px;
  text-align: center;
  font-weight: 1000;
  margin-top: 1rem;
  margin-bottom: -1rem;
}

.divider {
  margin: 5em 2rem;
  padding: 0 20%;
  height: 3px;
  border-top: 1px rgba(24, 123, 9, 0.5) solid;
  border-bottom: 1px rgba(24, 123, 9, 0.5) solid;
}

.snip {
  margin: 2em 5em;
  padding: 0 20%;
  height: 1px;
  border-top: 2px rgba(24, 123, 9, 0.5) dashed;
}

.card-group {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.card {
  font-family: "Noto Sans SC";
  margin: 0.2rem;
  padding: 0.5rem;
  user-select: none;
  border: 1px rgb(24, 123, 9) solid;
  border-radius: 5px;
  display: flex;
  justify-content: between;
  color: rgb(10, 60, 4);
}

.card__title {
  font-size: 12px;
  font-weight: 1000;
  margin-right: 0.5rem;
}

.card__content {
  font-size: 13px;
  font-weight: 100;
}

.card__content > a {
  text-decoration: none;
  border-bottom: 3px solid rgba(24, 123, 9, 0.8);
  color: inherit;
}

.card:hover {
  background-color: rgb(24, 123, 9);
  color: white;
  box-shadow: -1px -1px 1px 1px #eeeeee;
}

.card:active {
  background-color: rgb(10, 60, 4);
}

.big-card {
  border: 1px solid #e3e3e3;
  box-shadow: 0 3px 7px #eeeeee;
  padding: 1em 1em;
  user-select: none;
  max-width: 38%;
  display: block;
  margin: 1rem;
  text-decoration: none;
}

@media screen and (max-width: 687px) {
  .big-card {
    max-width: 100%;
    width: 90%;
  }
}

.big-card__title {
  color: rgb(24, 123, 8);
  font-weight: 1000;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px #eeeeee solid;
}

.big-card__content {
  font-size: 0.9em;
  color: #999999;
}

.big-card__empty {
  width: 90%;
  max-width: 90%;
  text-align: center;
  color: #8a8a8a;
  font-weight: 1000;
}

.big-card:hover {
  box-shadow: 0 4px 8px #aaaaaa;
  border: 1px solid rgb(48, 200, 16);
}

.big-card:active {
  border: 1px solid rgb(48, 200, 16);
  box-shadow: 0 3px 0 3px #fafafa;
}

.post-info {
  font-size: 0.83em;
  margin-top: 1.67em;
  margin-bottom: 1.67.em
}

.post-info > div {
  font-size: inherit;
  overflow-wrap: break-word;
}

.tag {
  background-color: rgb(24, 123, 9);
  color: white;
  padding: 0.2em 0.7em;
  margin: 0.1em 0.1em;
  border-radius: 5px;
  line-height: 2em;
  user-select: none;
}

.text-divider {
  font-family: "Noto Sans SC";
  user-select: none;
  text-align: center;
  margin: 5em 2em;
  color: rgb(24, 123, 9);
  font-size: 0.8em;
  font-weight: 1000;
  display: flex;
}

.text-divider:before {
  content: "";
  flex: 1;
  width: 45%;
  height: 0.8em;
  border-bottom: 3px rgba(24, 123, 9, 0.5) dashed;
  margin: 0 5%;
}

.text-divider:after {
  content: "";
  flex: 1;
  width: 45%;
  height: 0.8em;
  border-bottom: 3px rgba(24, 123, 9, 0.5) dashed;
  margin: 0 5%;
}

.container {
  padding: 0 10%;
}

@media screen and (min-width: 1000px) {
  .slightly-right-offset {
    margin-left: 2em;
  }
}
